{% extends "base.html" %}


{% block content %}

<h1>Upload Dosage Files for Computation</h1>
<p>Please submit a tarball of your files, containing all dosage files in .gz format</p>
<p>It should contain a folder with the <i>same</i> name as the tar file, minus the .tar suffix. It hsould contain a series of folders all gziped (ending in ".txt.gz"). </p>
<p> For Example: Tarfile: dosages.tar | Contents of tar: directory dosages | contents of dosages: "chr1.dosage.txt.gz, chr2.dosage.txt.gz ..."  In this case "chr" is the prefix.</p>
<p>Please see further documentation at <a href="https://github.com/hakyimlab/PrediXmod/blob/master/PrediXcan/README.md">this readme. </a> You can find complete source code <a href="https://github.com/hriordan/PrediXcan">here. </a></p>

<form action='' method="POST" enctype="multipart/form-data">
	 Your Prefix!
	 {{ form.prefix }}
	<p> {{ form.tarfile }} Put your tarfile here. </p>
	{{ form.csrf_token }}
	<p> {{ form.genelist }} put your gene list file here.</p>
	{{ form.submit }}
   <!-- <input type='submit' value='upload'> 
    </p> -->
</form>

<ul>
    {% for file in files %}
      <li><a> {{file}}</a></li>
    {% endfor %}
</ul>

<p><i>Please direct questions to hriordan@uchicago.edu</i><p>

{% if filename %}
	<p>Click to download your results. Be wary, the file may be quite large.</p>
	<a href="{{ url_for('download',filename=filename) }}" download>Results</a>
{% endif %}

{% endblock %}

